package cn.cycleif.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Date: 25/1/21-16:36
 * @Desc:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Menu {

  @TableId(type = IdType.AUTO)
  private Integer id;
  private String  name;
  private String  type;
  private Integer requiredRanks;

  @TableField(fill = FieldFill.INSERT)
  private LocalDateTime createAt;
  @TableField(fill = FieldFill.UPDATE)
  private LocalDateTime updateAt;
}
